<p>&nbsp;</p>
<%= form_remote_tag :url=>{:controller=>"view",:action=>"updateperson"},:update=>"person",
					:loading => %{window.document.getElementById('modifyperson').innerHTML='<div align="right" class="meddeepblue"><img src="/images/progress.gif"/>&nbsp;<strong>正在修改您的资料...<strong></div>'},
					:complete => "alert('个人资料修改完成')"%>
<table border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td width="120" height="32" class="medblack">
		<li>姓名：</li>
		</td>
		<td height="32" class="medgray"><%= text_field 'person', 'name',:size=>"20", 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%>&nbsp;&nbsp;(姓名不能为空)</td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>性别：</li>
		</td>
		<td height="32" class="medblack">&nbsp;男&nbsp;
		<%if person.tsex -%>
		<%= radio_button 'person', 'tsex', 1 , :checked=>1 %>
		&nbsp;女&nbsp;<%= radio_button 'person', 'tsex', 0 %>
		<%else -%>
		<%= radio_button 'person', 'tsex', 1 %>
		&nbsp;女&nbsp;<%= radio_button 'person', 'tsex', 0, :checked=>1 %>
		<%end -%>
		</td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>生日：</li>
		</td>
		<td height="32"><%= date_select 'person', 'tbirthday',:start_year=>1945%>
		</td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>工作年份：</li>
		</td>
		<td height="32"><%= select 'person', 'texperience',1960..Time.now.year %></td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>教育背景：</li>
		</td>
		<td height="32"><%= 
    @eudcations = Education.find(:all).map {|u| [u.cname, u.id] }
    select 'person', 'teducation_id',@eudcations%></td>
	</tr>
	<tr>
		<td width="120" height="32" class="medblack">
		<li>海外经历：</li>
		</td>
		<td height="32"><%= 
    @overseas = Oversea.find(:all).map {|u| [u.cname, u.id] }
    select 'person', 'toversea_id',@overseas%></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td align="right" width="430"><%= submit_tag " 更 新 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag%></td>
		<td align="left" class="medblack"><%= form_remote_tag :url=>{:controller=>"view",:action=>"hideperson"},:update=>"modifyperson"%>
		&nbsp;<%= submit_tag " 取 消 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag %></td>
	</tr>
</table>
